import axios from "axios";
ax
export default axios.create({
  //会把传入的对象当成axios的prototype
  baseURL: "/api", //配置默认的url
  withCredentials: true, //将会默认携带认证给后端
  timeout: 1000 * 10, //请求超时设置,如果超过10s就会进入reject
});
